package com.hospital.vo;

import com.github.pagehelper.PageInfo;

import java.util.List;

public class ResultVO<T> {
    private Integer code = 200;
    private String message;
    private T obj;
    private PageInfo<T> pageInfo;
    private List<T> objList;

    public ResultVO() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T object) {
        this.obj = object;
    }

    public PageInfo<T> getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo<T> pageInfo) {
        this.pageInfo = pageInfo;
    }

    public List<T> getObjList() {
        return objList;
    }

    public void setObjList(List<T> objList) {
        this.objList = objList;
    }

    @Override
    public String toString() {
        return "ResultVO{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", object=" + obj +
                ", pageInfo=" + pageInfo +
                ", objList=" + objList +
                '}';
    }
}
